<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Ajax 重构</title>
<script type="text/javascript" src="AjaxRequest.js"></script>
</head>
<body>
	<div style="border: 1px solid; height: 50px; width: 200px; padding: 5px;">
		<marquee direction="up" scrollamount="3">
			<div id="showInfo"></div>
		</marquee>
	</div>

	<script type="text/javascript">
		function onerror() {
			alert("您的操作有误！");
		}
		function getInfo() {
			var loader = new net.AjaxReuqest("getInfo.jsp?nocache=" + new Date(), deal_getInfo, onerror, "GET");
		}
		function deal_getInfo() {
			document.getElementById("showInfo").innerHTML = this.req.responseText;
		}
		window.onload = function () {
			getInfo();
		}
	</script>
</body>
</html>